<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns="http://www.w3.org/1999/xhtml" version="2.1">
	<jsp:directive.page contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />
	<jsp:output omit-xml-declaration="false" doctype-root-element="HTML"
		doctype-system="about:legacy-compat" />
<html>
<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<title>Ikex</title>
<link rel="shortcut icon" href="${pageContext.request.contextPath }/img/favicon.png" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/estilos.css"
	type="text/css" media="screen" charset="utf-8" />
	
	<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/menuLateral.css"
	type="text/css" media="screen" charset="utf-8" />

<link href="${pageContext.request.contextPath }/js/calendario_dw/calendario_dw-estilos.css" type="text/css" rel="STYLESHEET" />
	
<script type="text/javascript" src="${pageContext.request.contextPath }/js/calendario_dw/jquery-1.4.4.min.js"><!-- A --></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/calendario_dw/calendario_dw.js"><!-- A --></script>
<script type="text/javascript" language="javascript" src="${pageContext.request.contextPath }/js/login/login.js">
<!-- a -->
</script>


<script type="text/javascript">
$(document).ready(function(){
   $(".campofecha").calendarioDW();
})
</script>

<meta name="description" content="" />
<meta name="author" content="Emilio Javier Castillo Gonzalez" />

</head>


<body>
<jsp:useBean id="clienteAdminBean" class="es.ikex.beans.ClienteAdminBean" scope="session" />
	<c:import url="${pageContext.request.pathInfo}/jsp/menuLateral.jsp" />
	<div id="contenedor">
		<c:import url="${pageContext.request.pathInfo}/jsp/cabecera.jsp" />
		
		<div id="contenido" style="padding-top: 0px;">
			
			<div id="centro" style="margin-top: 0px;">
				<c:import url="${pageContext.request.pathInfo}/Admin/menuAdmin.jsp" />
				<c:import url="${pageContext.request.pathInfo}/Admin/SuperAdmin/menuSuperAdmin.jsp" />
				<script type="text/javascript">
					var doc = document.getElementById("b");
					doc.setAttribute("class", "menuAdminHover");
				</script>
				<div id="nuevoUsuario" class="left">
				<form action="${pageContext.request.contextPath}/Controlador/procesarRegistroAdministrador.jsp" method="post" accept-charset="UTF-8">
				<h2>Nuevo administrador</h2>
				<br />
				<table class="tablaGris">
					<tr>
						<td><label for="usuario">Usuario</label></td>
						<td><input required="required" type="text" name="usuario" id="usuario"
							value="${clienteAdminBean.usuario}" tabindex="1" /></td>
							
							
						<td><label for="nombre">Nombre</label></td>
						<td><input required="required"  type="text" name="nombre" id="nombre"
							value="${clienteAdminBean.nombre}" tabindex="7" /></td>
					</tr>
					<tr>
						<td><label for="clave">Contraseña</label></td>
						<td><input required="required"  type="password" name="clave" id="clave"
							tabindex="2" /></td>
							
						<td><label for="apellidos">Apellidos</label></td>
						<td><input required="required"  type="text" name="apellidos" id="apellidos"
							value="${clienteAdminBean.apellidos}" tabindex="8" /></td>
					</tr>
					<tr>
						<td><label for="clave1">Confirmar contraseña</label></td>
						<td><input required="required"  type="password" name="clave1" id="clave1"
							tabindex="3" /></td>
							
						<td><label for="nifNie">Dni</label></td>
						<td><input required="required"  type="text" name="nifNie" id="nifNie"
							value="${clienteAdminBean.nifNie}" tabindex="9" /></td>
					</tr>
					<tr>
						<td><label for="direccion">Direccion</label></td>
						<td><input required="required"  type="text" name="direccion" id="direccion"
							value="${clienteAdminBean.direccion}" tabindex="4" /></td>

						<td><label for="telefono">Telefono</label></td>
						<td><input  required="required" type="number" min="600000000" max="999999999"  name="telefono" id="telefono"
							value="${clienteAdminBean.telefono}" tabindex="10" /></td>
					</tr>
					<tr>
						<td><label for="fechaNacimiento">Fecha de nacimiento</label></td>
						<td><input  required="required" id="fechaNacimiento" type="text"
							name="fechaNacimiento" class="campofecha"
							size="16" readonly="readonly" value="${clienteAdminBean.fechaNacimiento}" tabindex="5" /></td>
							
						<td><label for="correo">Correo electronico</label></td>
						<td><input  required="required" id="correo" type="text"
							name="correo" value="${clienteAdminBean.correo}" tabindex="11" /></td>
					</tr>
					
					<tr>	
						<td><label for="codigoPostal">Codigo postal</label></td>
						<td><input  required="required" id="codigoPostal" type="number"
							name="codigoPostal" value="${clienteAdminBean.codigoPostal}" tabindex="6" /></td>
							
						<td><label for="tipoAcceso">Tipo administrador</label></td>
						<td>
							<select name="tipoAcceso" tabindex="12">
								<option value="Administrador">Administrador</option>
								<option value="SuperAdmin">Super administrador</option>
							</select>
						</td>
					</tr>

					<tr>
						<td class="sinBorde"><input type="reset" name="reset" id="reset"
							value="Limpiar" /></td>
						<td class="sinBorde"><input type="submit" name="enviar" id="enviar"
							value="Crear administrador" /></td>
					</tr>
				</table>
				<span style="color: red;">${error}</span>
				</form>
				</div>
			</div>
			
			<div id="der" style="clear: both;"></div>
		</div>
	</div>
	
</body>
</html>
</jsp:root>